/* 全局样式 */
body {
    font-family: 'Poppins', Arial, sans-serif; /* 更现代的字体 */
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333; /* 增加颜色对比 */
    line-height: 1.6;
}

header {
    background: linear-gradient(45deg, #00a1d6, #008cba); /* 使用渐变背景 */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

.logo {
    font-size: 26px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff8e1f; /* 悬停颜色 */
}

.search-bar {
    display: flex;
    background-color: white;
    border-radius: 30px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-bar input {
    border: none;
    padding: 10px;
    border-radius: 30px;
    width: 200px;
    outline: none;
}

.search-bar button {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff8e1f, #ff4f81); /* 渐变按钮 */
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: linear-gradient(45deg, #ff4f81, #ff8e1f); /* 按钮悬停效果 */
}

/* 容器 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background-color: white;
    padding: 30px;
    border: 1px solid #ddd;
    width: 100%;
    max-width: 500px; /* 扩大卡片宽度 */
    box-sizing: border-box;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1); /* 更明显的阴影 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px); /* 悬停时的动画效果 */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

#user-info {
    text-align: center;
}

#user-info img {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(45deg, #00a1d6, #008cba);
    color: white;
    border: none;
    padding: 12px 30px;
    cursor: pointer;
    border-radius: 30px;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #008cba, #00a1d6);
    transform: translateY(-3px); /* 增加悬停效果 */
}

.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.video {
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.video img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); /* 更深的背景遮罩 */
}

.modal-content {
    background-color: white;
    margin: 15% auto;
    padding: 40px;
    border: none;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* 增加阴影效果 */
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#video-player {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 增加阴影效果 */
}

/* 响应式设计 */
@media (max-width: 768px) {
    .video {
        width: calc(50% - 20px);
    }

    .card {
        max-width: 100%;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 480px) {
    .video {
        width: 100%;
    }

    .search-bar {
        flex-direction: column;
        width: 100%;
    }

    .search-bar input {
        width: 100%;
        margin-bottom: 10px;
    }

    .search-bar button {
        width: 100%;
    }
}